<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ page import="bean.building_manage" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <title>My JSP 'adata1.jsp' starting page</title>

	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">h2{text-align: center;}tr{border:1px solid;}
td{width:500px;height:100px;font-family:黑体;border:1px solid;text-align:center;font-size:25px;}
div{margin-left:auto;margin-right:auto;width:1000px;height:500px;}
button{height:100px;font-size:30px;font-family:黑体;margin-top:20px;}
table{border:1px solid;margin-left:auto;margin-right:auto;}
</style>
  </head>
  
  <body>
 
   <h2>管理信息表:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="alogin?aid=<%=request.getAttribute("id")%>&apsw=<%=request.getAttribute("psw") %>">上一页</a></h2> 
   <div>
     <table>
     <tr><td>工号</td><td>姓名</td><td>负责楼宇</td></tr>
     <%
     ArrayList list=(ArrayList)request.getAttribute("list");
     for(int i=0;i<list.size();i++){
     building_manage bm =(building_manage)list.get(i);
     out.print("<tr><td>"+bm.getGonghao()+"</td><td>"+bm.getXingming()+"</td><td>"+bm.getFuzelouyu()+"</td><td>"+"<a href=\"achange1.jsp?id="+bm.getGonghao()+"&psw="+request.getAttribute("psw")+"\">"+"修改"+"</a>"+"</td></tr>");
     }
      %>
     </table>
   </div>
  </body>
</html>
